﻿using TinyContainer;

namespace TinyContainerTest.TestHelperClasses
{
    public class SampleClass : ISampleClass
    {
        private IContainer _container;
        public SampleClass(IContainer container)
        {
            this._container = container;
        }

        public void SayCheez()
        {
#if SILVERLIGHT
      
            System.Windows.MessageBox.Show((string)this._container.Resolve(typeof(string)));
#else
            System.Console.WriteLine(this._container.Resolve<string>());
#endif
        }
    }
}
